package swimv2.session;

import java.util.List;

import javax.ejb.Remote;

import swimv2.entity.Message;
import swimv2.entity.Request;
import swimv2.entity.Response;

@Remote
public interface IWorkModuleRemote {
	public boolean sendPrivateRequest(Integer IdUser, String Subject, String Text, Integer IdUser_Receiver);
	public boolean sendPrivateRequest(Integer IdUser, Message m, Integer IdUser_Receiver);
	
	public boolean sendPublicRequest(Integer IdUser, String Subject, String Text);
	public boolean sendPublicRequest(Integer IdUser, Message m);
	
	public boolean respond(Integer IdUser, String Subject, String Text,Integer Id_Request,Integer Id_Response);
	public boolean respondAndReject(Integer idUser, String Subject, String Text,Integer Id_Request,Integer Id_Response);
	
	public boolean giveFeedBack(Integer IdUser,Integer punteggio, String Commento,Integer Id_Request,Integer Id_Response);

	public List<Response> getConversations(Integer IdUser);
	public List<Message> getMessageFromConversation(Integer IdConv);
	public List<Request> getPublicRequest(Integer IdUtente);
	
	public Message getMessage(Integer id);
	
	public Request getRequest(Integer id);
}
